﻿namespace Max.PH5_2010A.Shopping.DTO
{
    public class ResponseResultDto
    {
        /// <summary>
        /// 客户端用户判断
        /// </summary>
        public ResponseResultCode Code { get; set; } =  ResponseResultCode.Success;

        /// <summary>
        /// 客户端的提示信息
        /// </summary>
        public string Message { get; set; } = "操作成功";

        public dynamic Data { get; set; }

    }

    public enum ResponseResultCode
    {
        Success = 200,
        Failed = 500,
       
        ParamNoVailed = -99,
        UserDisabled = -101,
        UsernameError = -102,
        PasswordError = -103,
       
        /// <summary>
        /// 无效的Key
        /// </summary>
        ValidKey = -400,

        /// <summary>
        /// 库存不足
        /// </summary>
        StockError = -406
    }
}